import request from '@/utils/request'

/**
 * 已添加的部门列表
 * @param {*} data
 */
export function recordQueryPage(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: 'backend/redpacketsActivityLimit/queryPage',
    method: 'post',
    data
  })
}

/**
 * 资金注入
 * @param {*} data
 */
export function insert(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: 'backend/redpacketsActivityLimit/insertForSysDept',
    method: 'post',
    data
  })
}

/**
 * 删除
 * @param {*} id
 */
export function del(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/redpacketsActivityLimit/deleteById',
    method: 'post',
    data
  })
}

export function getComAndOrgTree(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/departmentInfo/getDeptTree',
    method: 'post',
    data
  })
}
